package statickeyword;

/**
 * @License: (C) Copyright 2013-2022
 * @Contact: abcque@outlook.com
 * @IDE: IntelliJ IDEA
 * @Encoding: utf-8
 * @Project: st2214st2215
 * @Package: statickeyword
 * @File: Circle.java
 * @Time: 2023/3/21 14:13
 * @Author: abcque
 * @Description:
 * @Modifier:
 * @ModifyDate:
 * @ModifyRemark:
 */
public class Circle {
    private double radius;
    private static String name = "这是一个圆";
    public static long count = 0;

    public Circle(double radius) {
        count ++;
        this.radius = radius;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    public static String getName() {
        return name;
    }

    public static void setName(String name) {
        Circle.name = name;
    }

    public void getInfo(){
        System.out.println("radius " + this.radius + " " + "count: " + count);
    }
}
